package com.mazewei.dev.entity;

/**
 * 教师实体类 - 对应数据库teacher表
 */
public class Teacher {
    private String trNum;              // 教师编号
    private String trFirstName;        // 教师姓氏
    private String trName;              // 教师名字
    
    public Teacher() {}
    
    // Getter and Setter methods
    public String getTrNum() {
        return trNum;
    }
    
    public void setTrNum(String trNum) {
        this.trNum = trNum;
    }
    
    public String getTrFirstName() {
        return trFirstName;
    }

    public void setTrFirstName(String trFirstName) {
        this.trFirstName = trFirstName;
    }

    public String getTrName() {
        return trName;
    }

    public void setTrName(String trName) {
        this.trName = trName;
    }

    /**
     * 获取完整姓名（姓+名）
     * @return 完整姓名
     */
    public String getFullName() {
        return (trFirstName != null ? trFirstName : "") + (trName != null ? trName : "");
    }
    
    @Override
    public String toString() {
        return "Teacher{" +
                "trNum='" + trNum + '\'' +
                ", trFirstName='" + trFirstName + '\'' +
                ", trName='" + trName + '\'' +
                '}';
    }
}